/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.mldn.demo.astract;

/**
 *
 * @author Administrator
 */
public class IF01 {
    public static void main(String[] args) {
        X02 x = new X02();
        x.say();
        x.print();
    }
}

interface A02{
    public String AUTHOR="lxh";
    void print();
    String getInfo();
}

abstract class B02{
    abstract public void say();
}

class X02 extends  B02 implements A02{

    public String getInfo() {
        return "Hello";
    }

    public void print() {
        System.out.println("author: "+AUTHOR);
    }

    public void say() {
        System.out.println("Hello world!"+ getInfo());
    }
    
}